/*
 * Schema.java
 *
 * Copyright (c) 2008 Teamnet. All Rights Reserved.
 *
 * This source file may not be copied, modified or redistributed,
 * in whole or in part, in any form or for any reason, without the express
 * written consent of Teamnet.
 */
package ro.prjmanager.database.model;

import java.util.List;

/**
 * This class maps an oracle schema to java
 */
public class Schema {
    //this member holds the database schema name
    private String name;
    //this member holds all tables definded in this schema
    private List<Table> tables;

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public List<Table> getTables() {
        return tables;
    }

    public void setTables(List<Table> tables) {
        this.tables = tables;
    }

    /**
     * This method is an delegate over the tables property and add an table to this schema
     * @param  table- The table that must be added
     * @return - true if the opperation are successfully
     */
    public boolean add(Table table) {
        return tables.add(table);
    }
}
